<aside class="widget woocommerce widget_product_categories">
  <h3 class="widgettitle"> <a href="#" title=""> <?php echo Yii::t('default', 'Menu Categories')?> </a> </h3>
  <?php if (!empty($categories)) {?>
    <ul>
      <?php foreach ($categories as $key => $value) {
        $active = '';
        if ($categoryID != '' && md5($key) == $categoryID) {
          $active = 'class="active"';
        }
      ?>
        <li> 
          <a <?php echo $active?> href="<?php echo Yii::app()->baseUrl?>/product/index/catID/<?php echo md5($key)?>" title="<?php echo $value?>"> <?php echo $value?>
          </a> 
        </li>
      <?php }?>
    </ul>
  <?php }?>
</aside>